/*
 * Copyright 2010 bedatadriven
 *
 *    Licensed under the Apache License, Version 2.0 (the "License");
 *    you may not use this file except in compliance with the License.
 *    You may obtain a copy of the License at
 *
 *        http://www.apache.org/licenses/LICENSE-2.0
 *
 *    Unless required by applicable law or agreed to in writing, software
 *    distributed under the License is distributed on an "AS IS" BASIS,
 *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *    See the License for the specific language governing permissions and
 *    limitations under the License.
 */

/**
 * JacobGen generated file --- do not edit
 *
 * (http://www.bigatti.it/projects/jacobgen)
 */
package com.bedatadriven.mso.powerpoint;

import com.bedatadriven.mso.core.MsoConnectorType;
import com.bedatadriven.mso.core.MsoTriState;
import com.bedatadriven.mso.core.Shape;
import com.google.gwt.core.client.JavaScriptObject;

/** Wrapper for PowerPoint.ConnectorFormat*/
public class ConnectorFormat extends JavaScriptObject {

	protected ConnectorFormat() { }
	public native final Object getApplication()/*-{
		return this.Application;
	}-*/;

	public native final int getCreator()/*-{
		return this.Creator;
	}-*/;

	public native final Object getParent()/*-{
		return this.Parent;
	}-*/;

	public native final void beginConnect(Shape connectedShape, int connectionSite)/*-{
		this.BeginConnect( connectedShape, connectionSite);
	}-*/;

	public native final void beginDisconnect()/*-{
		this.BeginDisconnect( );
	}-*/;

	public native final void endConnect(Shape connectedShape, int connectionSite)/*-{
		this.EndConnect( connectedShape, connectionSite);
	}-*/;

	public native final void endDisconnect()/*-{
		this.EndDisconnect( );
	}-*/;

	protected native final int _getBeginConnected()/*-{
		return this.BeginConnected;
	}-*/;

	public final MsoTriState getBeginConnected(){
		return MsoTriState.valueOf(_getBeginConnected());
	}
	public native final Shape getBeginConnectedShape()/*-{
		return this.BeginConnectedShape;
	}-*/;

	public native final int getBeginConnectionSite()/*-{
		return this.BeginConnectionSite;
	}-*/;

	protected native final int _getEndConnected()/*-{
		return this.EndConnected;
	}-*/;

	public final MsoTriState getEndConnected(){
		return MsoTriState.valueOf(_getEndConnected());
	}
	public native final Shape getEndConnectedShape()/*-{
		return this.EndConnectedShape;
	}-*/;

	public native final int getEndConnectionSite()/*-{
		return this.EndConnectionSite;
	}-*/;

	protected native final int _getType()/*-{
		return this.Type;
	}-*/;

	public final MsoConnectorType getType(){
		return MsoConnectorType.valueOf(_getType());
	}
	protected native final void _setType( int value)/*-{
		this.Type = value;
	}-*/;

	public final void setType(MsoConnectorType value){
		_setType(value.getValue());
	}
}
